{% extends 'Base/main.content.lists.div.html.twig' %}
{% import 'Base/list_item.twig' as listItem %}
{% block options %}
    {#<div class="menu-list">#}
        {#{{ dump(tools) }}#}
        {#{% for key , classes in tools %}#}
            {#{% set default = "请选择分类" %}#}
            {#{% set classes = classes %}#}
            {#<div class="rule-single-select">#}
                {#<select name="cond[{{ key }}]" onchange="javascript:__doPostBack('searchCond','')" >#}
                    {#<option value="" {{app.request.get("cond")[key] is defined and app.request.get("cond")[key] == "" ? ' selected="selected"' : "" }} >{{ default }}</option>#}
                    {#{% for class in classes %}#}
                        {#<option value="{{ class.id }}"#}
                                {#{{app.request.get("cond")[key] is defined and  app.request.get("cond")[key] == class.id ? ' selected="selected"' : "" }}#}
                        {#>{{ class.name }}</option>#}
                    {#{% endfor %}#}
                {#</select>#}
            {#</div>#}
        {#{% endfor %}#}
    {#</div>#}
{% endblock %}
{% block tableHead %}
    <tr>__LIST_TITLE_CONF__</tr>
{% endblock %}
{% block tableList %}
    {% for Entity in lists %}
        <tr>__LIST_ROW_CONF__
        </tr>
    {% endfor %}
{% endblock %}
{% block script %}
{% endblock %}

